package _11Calendar类;

import java.util.Calendar;

public class Demo {


    public static void main(String[] args) {
        //获取当前时间的日历类
        Calendar c = Calendar.getInstance();

        System.out.println(c.getTime());

        int year = c.get(Calendar.YEAR);
        System.out.println(year);
    }
}
